Optimal. Leaf size=12 \[ \frac{B \tanh ^{-1}(\sin (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0068244, antiderivative size = 12, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 32, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.062, Rules used = {21, 3770} \[ \frac{B \tanh ^{-1}(\sin (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 3770
Rubi steps
\begin{align*} \int \frac{(a B+b B \cos (c+d x)) \sec (c+d x)}{a+b \cos (c+d x)} \, dx &=B \int \sec (c+d x) \, dx\\ &=\frac{B \tanh ^{-1}(\sin (c+d x))}{d}\\ \end{align*}
Mathematica [A] time = 0.0030115, size = 12, normalized size = 1. \[ \frac{B \tanh ^{-1}(\sin (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.056, size = 20, normalized size = 1.7 \begin{align*}{\frac{B\ln \left ( \sec \left ( dx+c \right ) +\tan \left ( dx+c \right ) \right ) }{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.41919, size = 81, normalized size = 6.75 \begin{align*} \frac{B \log \left (\sin \left (d x + c\right ) + 1\right ) - B \log \left (-\sin \left (d x + c\right ) + 1\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 4.50306, size = 39, normalized size = 3.25 \begin{align*} \begin{cases} \frac{B \log{\left (\tan{\left (c + d x \right )} + \sec{\left (c + d x \right )} \right )}}{d} & \text{for}\: d \neq 0 \\\frac{x \left (B a + B b \cos{\left (c \right )}\right ) \sec{\left (c \right )}}{a + b \cos{\left (c \right )}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.47797, size = 63, normalized size = 5.25 \begin{align*} \frac{B \log \left ({\left | \frac{1}{\sin \left (d x + c\right )} + \sin \left (d x + c\right ) + 2 \right |}\right ) - B \log \left ({\left | \frac{1}{\sin \left (d x + c\right )} + \sin \left (d x + c\right ) - 2 \right |}\right )}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]